package com.tangsm.spring.boot.swagger3.service.impl;

import com.tangsm.spring.boot.swagger3.service.StudentService;
import com.tangsm.spring.boot.swagger3.domain.Student;
import com.tangsm.spring.boot.swagger3.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学生信息业务接口实现
 * @author tangsm
 * @date 2021-07-23
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public int add(Student student) {
        return studentMapper.add(student);
    }

    @Override
    public int update(Student student) {
        return studentMapper.update(student);
    }

    @Override
    public int deleteBySno(String sno) {
        return studentMapper.deleteBySno(sno);
    }

    @Override
    public Student queryBySno(String sno) {
        return studentMapper.queryBySno(sno);
    }
}
